﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PowerSys.SystemFramework
{
    

    public class SysMessage
    {
        public enum MessageType { Normal, Success, Failure, Error };

        public bool Success { get; set; }
        public MessageType Type { get; set; }
        public decimal Code { get; set; }
        public string Name { get; set; }
        public string Detail { get; set; }
        public Exception SysExcepton { get; set; }

        public SysMessage()
        {
            Success = true;
            Type = MessageType.Normal;
            Code = 0;
            Name = "";
            Detail = "";
            SysExcepton = null;
        }
    }
}
